package com.java110.intf.cart;

import com.java110.intf.FeignConfiguration;
import com.java110.dto.housekeeping.HousekeepingFeeConfigDto;
import com.java110.dto.housekeeping.HousekeepingServFeeDto;
import com.java110.po.housekeeping.HousekeepingFeeConfigPo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

import java.util.List;

/**
 * @ClassName IHousekeepingFeeConfigInnerServiceSMO
 * @Description 费用标准接口类
 * @Author wuxw
 * @Date 2019/4/24 9:04
 * @Version 1.0
 * add by wuxw 2019/4/24
 **/
@FeignClient(name = "mall-cart", configuration = {FeignConfiguration.class})
@RequestMapping("/housekeepingFeeConfigApi")
public interface IHousekeepingFeeConfigInnerServiceSMO {


    @RequestMapping(value = "/saveHousekeepingFeeConfig", method = RequestMethod.POST)
    public int saveHousekeepingFeeConfig(@RequestBody HousekeepingFeeConfigPo housekeepingFeeConfigPo);

    @RequestMapping(value = "/updateHousekeepingFeeConfig", method = RequestMethod.POST)
    public int updateHousekeepingFeeConfig(@RequestBody  HousekeepingFeeConfigPo housekeepingFeeConfigPo);

    @RequestMapping(value = "/deleteHousekeepingFeeConfig", method = RequestMethod.POST)
    public int deleteHousekeepingFeeConfig(@RequestBody  HousekeepingFeeConfigPo housekeepingFeeConfigPo);

    /**
     * <p>查询小区楼信息</p>
     *
     *
     * @param housekeepingFeeConfigDto 数据对象分享
     * @return HousekeepingFeeConfigDto 对象数据
     */
    @RequestMapping(value = "/queryHousekeepingFeeConfigs", method = RequestMethod.POST)
    List<HousekeepingFeeConfigDto> queryHousekeepingFeeConfigs(@RequestBody HousekeepingFeeConfigDto housekeepingFeeConfigDto);

    /**
     * <p>查询小区楼信息</p>
     *
     *
     * @param housekeepingServFeeDto 数据对象分享
     * @return HousekeepingFeeConfigDto 对象数据
     */
    @RequestMapping(value = "/queryHousekeepingServFeeConfigs", method = RequestMethod.POST)
    List<HousekeepingFeeConfigDto> queryHousekeepingServFeeConfigs(@RequestBody HousekeepingServFeeDto housekeepingServFeeDto);
    /**
     * 查询<p>小区楼</p>总记录数
     *
     * @param housekeepingFeeConfigDto 数据对象分享
     * @return 小区下的小区楼记录数
     */
    @RequestMapping(value = "/queryHousekeepingFeeConfigsCount", method = RequestMethod.POST)
    int queryHousekeepingFeeConfigsCount(@RequestBody HousekeepingFeeConfigDto housekeepingFeeConfigDto);
}
